package com.indexingsystem.system.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.indexingsystem.boss.admin.mapper.DhResourceauditlogsMapper;
import com.indexingsystem.boss.entity.DhResourceauditlogs;
import com.indexingsystem.system.service.DhResourceauditlogsService;


@Service
public class DhResourceauditlogsServiceImpl implements DhResourceauditlogsService
{
    @Resource
    private DhResourceauditlogsMapper dhResourceauditlogsMapper;

    @Override
    public int deleteByPrimaryKey(String id)
    {
        return dhResourceauditlogsMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(DhResourceauditlogs record)
    {
        return dhResourceauditlogsMapper.insert(record);
    }

    @Override
    public int insertSelective(DhResourceauditlogs record)
    {
        return dhResourceauditlogsMapper.insertSelective(record);
    }

    @Override
    public DhResourceauditlogs selectByPrimaryKey(String id)
    {
        return dhResourceauditlogsMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(DhResourceauditlogs record)
    {
        return dhResourceauditlogsMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(DhResourceauditlogs record)
    {
        return dhResourceauditlogsMapper.updateByPrimaryKey(record);
    }

    @Override
    public int deleteBatchResourceAuditLogs(List<String> list)
    {
        return dhResourceauditlogsMapper.deleteBatchResourceAuditLogs(list);
    }
    
    
    /**
     * 通过资源id获取入库资源审核信息.
     * @param resId
     * @return
     */
    @Override
    public DhResourceauditlogs getResAuditlogsByResId(String resId){
        return dhResourceauditlogsMapper.getResAuditlogsByResId(resId);
    }
}